# https://github.com/nodesource/distributions

# Using Ubuntu
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs

# As root
curl -fsSL https://rpm.nodesource.com/setup_lts.x | bash -